import Vue from 'vue'
import Router from 'vue-router'

import GameMain from "../components/GameMain";
import GameStart from "../components/GameStart";
import GameInit from "../components/GameInit";
import ShowKing from "../components/ShowKing";
import GameLoading from "../components/GameLoading";
import Register from "../components/Register";
import GameLoading02 from "../components/GameLoading02";

Vue.use(Router)

export default new Router({

  routes: [
    {
      path: '/',  // 默认进入路由
      redirect: '/GameInit'   //重定向
    },
    {
      path: '/ShowKing',
      name: 'ShowKing',
      component: ShowKing
    },
    {
      path: '/GameInit',
      name: 'GameInit',
      component: GameInit
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/GameLoading',
      name: 'GameLoading',
      component: GameLoading
    },
    {
      path: '/GameLoading02',
      name: 'GameLoading02',
      component: GameLoading02
    },
    {
      path: '/GameMain',
      name: 'GameMain',
      component: GameMain
    },
    {
      path: '/GameStart',
      name: 'GameStart',
      component: GameStart
    },


  ]
})



